package com.jinly.ryder.deploy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinly.ryder.deploy.service.model.DeployProgress;
import com.jinly.ryder.deploy.service.model.DeployRecord;

public interface DeployRecordService {

    void updateDeployProgress(DeployProgress deployProgress);

    DeployProgress getDeployProgress(String host, Integer port);

    void removeDeployProgress(String host, Integer port);

    void createRecord(DeployRecord deployRecord);

    DeployRecord getRecord(Long recordId);

    Page<DeployRecord> queryRecordPage(Page page, Integer instanceId);

    void updateRecord(DeployRecord deployRecord);

    DeployRecord lastRecordByApplyId(Long applyId);
}
